﻿using System;
using Microsoft.SqlServer.Dts.Runtime;

namespace NazTek.Documenter.Ssis.Control
{
    internal class SsisEventListener : DefaultEvents
    {
        public override bool OnError(DtsObject source, int errorCode, string subComponent,
            string description, string helpFile, int helpContext, string idofInterfaceWithError)
        {
            Console.WriteLine(@"Error in {0}/{1} : {2}", source, subComponent, description);
            return false;
        }
    }
}